<?php //$this->pageTitle=Yii::app()->name; ?>

<?php 
 
$itemsProvider = new CArrayDataProvider($model->response->notificationConfigurationResponse->notificationConfigurationList->notificationConfiguration);
//echo json_encode($model->response->notificationConfigurationResponse->notificationConfigurationList->notificationConfiguration);


$this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'context',
	'selectionChanged'=>'js:show_detail', 
	'dataProvider'=>$itemsProvider,
	//'filter'=>$model,
	'columns'=>array(
	array(
'header' => 'nmbr',
'value' => '$row+1',
),
		'id',
		'name',
		'description',
		//'much',
		'active',
		//'ordr',
		/*
		'comments',
		*/
		 array(
			'class'=>'CButtonColumn', 
			'deleteButtonUrl'=>'Yii::app()->createUrl("ajax/delete", array ("id" => $data->id))', 
		), 
	),
)); 

Yii::app()->clientScript->registerScriptFile('/script/push_not.js', CClientScript::POS_HEAD);
//var_dump ($model->response);
/* foreach ($model->response->notificationConfigurationResponse->notificationConfigurationList->notificationConfiguration as $list)
{
echo $list->id."</BR>";
} */
//echo $model->response->notificationConfigurationResponse->notificationConfigurationList->notificationConfiguration
//echo join($model->response);

?>
 

 <div id="details"> </div>
